package com.promis.widget.paging;

/**
 * Created by nc on 2018/1/3.
 */

public class PageHelper {

    public static int nextPage(PageInfo pageInfo) {
        if (pageInfo == null) return 1;
        else {
            return pageInfo.getPageNum() + 1;
        }
    }

    public static boolean isMaxPage(PageInfo pageInfo) {
        if (pageInfo == null) return false;
        return pageInfo.getPageNum() >= pageInfo.getPages();
    }
}
